	// Table 表格
	var Table=function(selector){
		this.selector=selector;
		this.element=$(selector).get(0);
	}
	Table.prototype=new Control();
	Table.prototype.init=function(){
		
		var check=this.element.getAttribute("data-check")
		if(check=="true"){
			this.check();
		}else{
		}
	}
	Table.prototype.check=function(){
		//console.log("table")
		//return false;
		//$("table").each(function(index, element) {
			var thList=[];
			var oldList=$("thead",this.element).find("th");
			for(var i=0;i<oldList.length;i++){
				thList[i]=oldList.eq(i).attr("class");
			}
			var trList=$("tbody",this.element).find("tr");
			for(var i=0;i<trList.length;i++){
				var tdList=trList.eq(i).children("td");
				if(thList.length!=tdList.length&&thList.length>0){
					console.log("第"+(i+1)+"行tr列中的td数量不一致！标准th是"+thList.length+"个而td实际是"+tdList.length);
				}
				for(var j=0;j<tdList.length;j++){
					if(thList[j]!=tdList.eq(j).attr("class")){
						console.log("第"+(i+1)+"行"+(j+1)+"列中的class与规定的不一致！标准的class是"+thList[j]+"而实际的td的名称是"+tdList.eq(j).attr("class"))
					}
				}
			}
		//});
	}
	HTMLTurbo.control.Table=Table;